package server

import (
	"fmt"
	"github.com/nsqio/go-nsq"
)

type GameMatch struct {
}

func (g GameMatch) GetTopic() string {
	return "game_match"
}

func (g GameMatch) GetChannel() string {
	return "game_match"
}

func (g GameMatch) GetHandler() func(message *nsq.Message) error {
	return func(message *nsq.Message) error {
		fmt.Println("[收到] game_match", string(message.Body))
		return nil
	}
}
